package com.powernode.money.vo;

import java.io.Serializable;
import java.util.Date;

public class TopLoanInfo implements Serializable {
    private Integer id;

    private String loanId;

    private String uid;

    private Double bidMoney;

    private Date bidTime;

    private Integer bidStatus;

    @Override
    public String toString() {
        return "TopLoanInfo{" +
                "id=" + id +
                ", loanId=" + loanId +
                ", phone='" + uid + '\'' +
                ", bidMoney=" + bidMoney +
                ", bidTime=" + bidTime +
                ", bidStatus=" + bidStatus +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public String getPhoneAbs() {
        if(uid!=null && uid.length()==11){
            return uid.substring(0,3)+"******"+uid.substring(9,11);
        }else{
            return uid;
        }
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoanId() {
        return loanId;
    }

    public void setLoanId(String loanId) {
        this.loanId = loanId;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Double getBidMoney() {
        return bidMoney;
    }

    public void setBidMoney(Double bidMoney) {
        this.bidMoney = bidMoney;
    }

    public Date getBidTime() {
        return bidTime;
    }

    public void setBidTime(Date bidTime) {
        this.bidTime = bidTime;
    }

    public Integer getBidStatus() {
        return bidStatus;
    }

    public void setBidStatus(Integer bidStatus) {
        this.bidStatus = bidStatus;
    }

    public TopLoanInfo(Integer id, String loanId, String uid, Double bidMoney, Date bidTime, Integer bidStatus) {
        this.id = id;
        this.loanId = loanId;
        this.uid = uid;
        this.bidMoney = bidMoney;
        this.bidTime = bidTime;
        this.bidStatus = bidStatus;
    }

    public TopLoanInfo() {
    }
}
